using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class StockRecordConfiguration : EntityTypeConfiguration<StockRecord>
    {
        public StockRecordConfiguration()
        {
            Property(g => g.StockRecordID).IsRequired();
            Property(g => g.AdditionalContent).IsOptional();
            Property(g => g.Created).IsOptional();
            
            Property(g => g.Modified).IsOptional();
            
            Property(g => g.ActivityCode).IsOptional();
            Property(g => g.Amount).IsOptional();
            Property(g => g.AmountStock).IsOptional();
            Property(g => g.FromStockUnitIdentity).IsOptional();
            Property(g => g.FromStoragelocation).IsOptional();
            Property(g => g.FromUnitload).IsOptional();
            Property(g => g.ItemData).IsOptional();
            Property(g => g.Lot).IsOptional();
            Property(g => g.Operator).IsOptional();
            Property(g => g.Scale).IsOptional();
            Property(g => g.SerialNumber).IsOptional();
            Property(g => g.ToStockUnitIdentity).IsOptional();
            Property(g => g.ToStorageLocation).IsOptional();
            Property(g => g.ToUnitLoad).IsOptional();
            Property(g => g.Type).IsOptional();
            Property(g => g.UnitLoadType).IsOptional();
            Property(g => g.ClientID).IsOptional();
        }
    }
}
